
add_definitions(-DWEBRTC_APM_DEBUG_DUMP=0)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
    add_definitions(-DWEBRTC_WIN)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MD")
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    add_definitions(-DWEBRTC_POSIX -DWEBRTC_LINUX)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fPIC -march=native")
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    add_definitions(-DWEBRTC_MAC)
ENDIF()
